package newx.com
{
	import flash.events.Event;

	/**
	 * 扩展event类，并作为今后event类的子集来扩展 
	 * @author riki
	 */	
	public class BaseEvent extends Event
	{
		/**事件原始产生对象，可以通过这个属性实现一个对象的事件派发到另一个对象上*/		
		private var __fromTarget:Object	=	null
		
		public function BaseEvent(type:String, _fromTarget:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			if(_fromTarget == null)
			{
				__fromTarget	=	this.target;
			}
			else
			{
				__fromTarget	=	_fromTarget;
			}
			super(type, bubbles, cancelable);
		}
		
		public function get fromTarget():Object
		{			
			return __fromTarget;
		}
	}
}